<!DOCTYPE html> 

<html> 

<head> 

<title>Button Click</title> 

<script> 

function sayHello() { 

  alert("Hello!"); 

} 

</script> 

</head> 

<body> 

<button onclick="sayHello()">Click me</button> 

</body> 

</html> 

 
